<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2018-08-07
  Time: 15:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/table/bootstrap-table.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/table/bootstrap-table.min.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/table/locale/bootstrap-table-zh-CN.min.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/date/Moment.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/layui.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/tongyong.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/easyui/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/easyui/icon.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/easyui/demo.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/static/easyui/jquery.easyui.min.js"></script>



<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/shequfuwu/cheweiguanli.js"></script>


<html>
<head>
    <title>车位管理</title>
</head>
<body>
<div class="panel panel-default">
    <div class="panel-body">
        <%--查询--%>
        <form class="form-inline" style="padding-left: 10px;">
            <button type="button" style="margin-left: 15px;margin-right: 15px;" class="btn btn-default navbar-btn"  data-target="#myModal" data-toggle="modal">增加</button>
            车位状态:
            <div class="form-group">

                <select id="zhuangtai" name="interest" class="form-control">

                    <option value="-1">请选择</option>
                    <option value="1">空闲</option>
                    <option value="2">已售</option>
                    <option value="3">已租</option>
                    <option value="4">临时停车</option>

                </select>
            </div>
            车位编号:
            <input type="text" class="form-control" id="carid">
            <button onclick="ban()" type="button" class="btn btn-default">查询</button>
        </form>
        <table id="Stable"></table>
    </div>
</div>
<!-- 模态框 -->
<!-- Modal -->
<div class="modal fade" id="myModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">保安巡查</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>
                    <div class="layui-card-header">基本信息</div>
                    <div class="layui-card-body">
                        <div class="form-group">

                            <label for="Scarid">车位编号:</label>
                            <input type="text" class="form-control" id="Scarid" placeholder="请输入车位编号">

                            <label for="ymoney">预售价格:</label>
                            <input type="text" class="form-control" id="ymoney" placeholder="请输入预售价格">
                        </div>
                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button onclick="add()" type="button" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>
<%--双击打开--%>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div style="width: 500px;" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel2">销售信息</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>

                    <input type="hidden" id="yin1">

                    <div class="form-group">
                        <label>车位编号:</label> <input type="text" class="form-control"  id="bianhao">
                    </div>

                    <div class="form-group">
                        <label>使用人:</label> <input type="text" class="form-control" onclick="shuji()" id="name">
                    </div>
                    <div class="form-group">
                        <label>车牌号:</label> <input type="text" class="form-control" id="carnumber">
                    </div>
                    <div class="form-group">
                        <label>用户电话:</label> <input type="text" class="form-control" id="phone">
                    </div>
                    <div class="form-group">
                        <label>起始使用日:</label> <input type="text" class="form-control" id="qdate">
                    </div>
                    <div class="form-、group">
                        <label>使用到期日:</label> <input type="text" class="form-control" id="ddate">
                    </div>
                    <div class="form-group">
                        <label>当前状态:</label>
                        <select id="type" name="interest" class="form-control">
                            <option value="-1">请选择</option>
                            <option value="1">空闲</option>
                            <option value="2">已售</option>
                            <option value="3">租赁</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>销售价格:</label> <input type="text" class="form-control" id="Symoney">
                    </div>
                    <div class="form-group">
                        <label>用户地址:</label> <input type="text" class="form-control" id="address">
                    </div>


                    <div class="form-group">
                        <label>备注:</label> <textarea class="form-control" rows="3" id="remark"></textarea>
                    </div>


                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" id="ddd" onclick="xiugai()" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div style="width: 1800px;" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel3">业主门牌</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>
                    <div id="da">
                        <div id="zuo">
                            <ul id="tt" class="easyui-tree" data-options="url:'${pageContext.request.contextPath}/sale/tree',method:'get',animate:true"></ul>
                        </div>
                        <div id="you">
                            <form class="form-inline">

                                <div>
                                    门牌编号:
                                    <select id="men" name="interest" class="form-control" style="width: 250px;">
                                        <option value="-1">请选择</option>
                                    </select>
                                </div>
                                <button onclick="search()" type="button" class="btn btn-default" style="">查询</button>

                            </form>
                            <table id="table"></table>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" id="Sddd" onclick="upd()" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>

</body>
<script type="text/javascript">
    $(function(){
        $.post("${pageContext.request.contextPath}/house/menpai",function (releset) {
            var e=releset;
            $(e).each(function (i,e) {
                $('#men').append('<option value='+e.doornumber+' >'+e.doornumber+'</option>');
            })
        })


    })
</script>

</html>
